package com.xishu.to.foodpanda;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 产品
 */
@Data
public class FoodPandaProduct extends FoodPandaBase {
    private static final long serialVersionUID = -7525437536126956738L;

    @ApiModelProperty(value = "标题")
    private FoodPandaZhEn title;

    @ApiModelProperty(value = "描述")
    private FoodPandaZhEn description;

    @ApiModelProperty(value = "价格")
    @FoodPandaAnnotation(fieldToString = true)
    private Double price;

    @ApiModelProperty(value = "细节管理")
    @FoodPandaAnnotation(listToObject = true)
    private List<FoodPandaBase> variants;

    @ApiModelProperty(value = "是否激活")
    private Boolean active;

    @ApiModelProperty(value = "是否提前打包的菜")
    private Boolean isPrepackedItem;

    @ApiModelProperty(value = "是否快递的菜")
    private Boolean isExpressItem;

    @ApiModelProperty(value = "不提供碗筷")
    private Boolean excludeDishInformation;

    @ApiModelProperty(value = "对应的图片")
    @FoodPandaAnnotation(addId = true)
    private FoodPandaBase images;

    @ApiModelProperty(value = "显示顺序")
    private Integer order;

    public FoodPandaProduct() {
        super.type = "Product";
        this.active = true;
    }
}